﻿Imports System.IO

''' <summary>
''' 序列化 And 反序列化 接口
''' </summary>
''' <remarks></remarks>
Public Interface ISerializer(Of T)

    ''' <summary>
    ''' 序列化
    ''' </summary>
    Sub Serialize(ByRef stream As Stream, ByVal obj As T)

    ''' <summary>
    ''' 反序列化
    ''' </summary>
    Function Desrialize(ByVal stream As Stream) As T

End Interface
